import cgi, cgitb

form = cgi.FieldStorage()


print "Content-Type: text/plain"

print ""


expr = form.getvalue("math_expr")

print eval(expr)

